package DALFactory;

import java.util.List;

import Entity.ERankElement;

public interface IDataCommentMapper {

	/**
	 * 更新或插入一条记录
	 * 
	 * @param HID
	 *            房子ID
	 * @param UID
	 *            用户ID
	 * @param Mark
	 *            评价等级
	 * @return
	 */

	public abstract boolean checkComment(int HID, int UID);

	public abstract int[] getStar(int HID);

	public abstract boolean InsertComment(int HID, int UID, int Mark);

	//public abstract int[] getHIDlist();

	//public abstract int getCollectionCount();
	
	public abstract List<ERankElement> getStarRank() ;

}